package top.hzy520.message.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.hzy520.common.resp.ApiResult;
import top.hzy520.message.service.MessagePostService;

/**
 * @Author: HouZeYu
 * @Description:  发送消息的接口
 * @Date: Created in 13:05 2018/7/21
 */
@RestController
@RequestMapping("/message")
public class MessageController {
    
     @Autowired
    private MessagePostService messagePostService;

     /**
     *@Author: HouZeYu
     *@Description:  发送增加积分的消息
     *@Date: 14:13 2018/7/21
     */
     @RequestMapping("/postpoints")
     private ApiResult messagePost(String message){
      ApiResult apiResult=new ApiResult();
      messagePostService.postMessage(message);
      return apiResult;
     }
}
